package com.schoolET.service.admin;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.schoolET.entity.Administrators;
import com.schoolET.entity.dto.AdminDTO;
import com.schoolET.entity.dto.AdminListDTO;
import com.schoolET.entity.dto.FileUploadDTO;
import com.schoolET.entity.vo.AdminSelectVO;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;


public interface RegionAdminService extends IService<Administrators> {
    //无条件查询管理员
    List<Administrators> getAdminLists();
    //条件查询地区管理员
    Page<AdminListDTO> getAdminList(AdminSelectVO adminSelectVO);

    //添加地区管理员
    FileUploadDTO addAdmin(Administrators administrators, MultipartFile file) throws IOException;

    //名字 电话 邮箱唯一查询
    List<Administrators> checkAdmin(Administrators administrators);

    //删除地区管理员
    boolean deleteAdmin(Integer id);

    //修改地区管理员
    FileUploadDTO updateAdmin(Administrators administrators, MultipartFile file) throws IOException;

    /**
     * @description: 获取管理员个人信息
     * @author: lin
     * @date: 2024/6/2 19:46
     * @param: id
     * @return: AdminDTO
     **/
    AdminDTO getAdmin(Integer id);
}
